package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "一方处方详细信息表")
public class PresYfDetail {
    /**
     * 处方编码 一方处方详细信息表
     */
    @TableId(value = "tencode", type = IdType.INPUT)
    @Column(isKey = true)
    private String tencode;

    /**
     * 剂量
     */
    @Column(length = 30, comment = "剂量")
    private String drugNum;

    /**
     * 0待审方 1审方不通过 2 待制备 3 制备中 4 待发货[已调配] 5 已发货 6已收货 7创建第三方订失败 8订单取消 9已退贷 10制备失败 11机构余额不足 66待复核 77互联网医院待支付 88待抄方
     */
    @Column(length = 30, comment = "0待审方 1审方不通过 2 待制备 3 制备中 4 待发货[已调配] 5 已发货 6已收货 7创建第三方订失败 8订单取消 9已退贷 10制备失败 11机构余额不足 66待复核 77互联网医院待支付 88待抄方")
    private String orderStatus;

    /**
     * prescription_url
     */
    @Column(length = 128, comment = "prescription_url")
    private String prescriptionUrl;

    /**
     * 是否浓煎
     */
    @Column(length = 30, comment = "是否浓煎")
    private Boolean isHeavy;

    /**
     * 是否外用
     */
    @Column(length = 30, comment = "是否外用")
    private Boolean isOutside;

    /**
     * 是否小儿量
     */
    @Column(length = 30, comment = "是否小儿量")
    private Boolean isChild;

    /**
     * 是否妊娠
     */
    @Column(length = 30, comment = "是否妊娠")
    private Boolean isGestation;

    /**
     * 医院备注，煎煮要求
     */
    @Column(length = 200, comment = "医院备注，煎煮要求")
    private String dtrAdvice;

    /**
     * 医生医嘱信息
     */
    @Column(length = 200, comment = "医生医嘱信息")
    private String doctorAdvice;

    /**
     * 用户姓名
     */
    @Column(length = 30, comment = "用户姓名")
    private String userName;

    /**
     * 用户手机号
     */
    @Column(length = 30, comment = "用户手机号")
    private String userPhone;

    /**
     * 省份代码
     */
    @Column(length = 30, comment = "省份代码")
    private String province;

    /**
     * 省市区地址
     */
    @Column(length = 30, comment = "省市区地址")
    private String city;

    /**
     * 详细地址
     */
    @Column(length = 30, comment = "详细地址")
    private String address;

    /**
     * 医生名称
     */
    @Column(length = 30, comment = "医生名称")
    private String doctorName;

    /**
     * 科室名字
     */
    @Column(length = 30, comment = "科室名字")
    private String departmentName;

    /**
     * 患者年龄
     */
    @Column(length = 30, comment = "患者年龄")
    private String age;

    /**
     * 患者性别
     */
    @Column(length = 30, comment = "患者性别")
    private String sex;

    /**
     * 诊断内容
     */
    @Column(length = 30, comment = "诊断内容")
    private String clinicalDiagnosis;

    /**
     * 配送类型(receipt_mode 配送类型 express 快递到家; patientarea 送至病房; drugstore 送至药房)
     */
    @Column(length = 30, comment = "配送类型(receipt_mode 配送类型 express 快递到家; patientarea 送至病房; drugstore 送至药房)")
    private String receiptMode;

    /**
     * 药物类型：grain=颗粒；
     */
    @Column(length = 30, comment = "药物类型：grain=颗粒；")
    private String drugType;

    /**
     * 第三方订单id
     */
    @Column(length = 30, comment = "第三方订单id")
    private String thirdPartyId;

    /**
     * 收件人名字
     */
    @Column(length = 30, comment = "收件人名字")
    private String borrowerName;

    /**
     * 收件人电话
     */
    @Column(length = 30, comment = "收件人电话")
    private String borrowerPhone;

    /**
     * 收件人地址编码
     */
    @Column(length = 30, comment = "收件人地址编码")
    private String borrowerProvince;

    /**
     * 收件人地址
     */
    @Column(length = 30, comment = "收件人地址")
    private String borrowerCity;

    /**
     * 收件人详细地址
     */
    @Column(length = 30, comment = "收件人详细地址")
    private String borrowerAddress;

    /**
     * 默认几小
     */
    @Column(length = 30, comment = "默认几小")
    private String unitNum;

    /**
     * 药方名称
     */
    @Column(length = 30, comment = "药方名称")
    private String prescriptionName;

    /**
     * 业务类型； granule_makeup颗粒代配(机配)\granule_pack颗粒代配(小袋装)\tcm_decoction饮片代煎\tcm_makeup饮片代配\plaster_makeup膏方代制\pill 蜜丸\capsule 胶囊\powder 打粉\stock_in医院进货\medicinal_liquor 药酒
     */
    @Column(length = 30, comment = "业务类型； granule_makeup颗粒代配(机配)\\granule_pack颗粒代配(小袋装)\\tcm_decoction饮片代煎\\tcm_makeup饮片代配\\plaster_makeup膏方代制\\pill 蜜丸\\capsule 胶囊\\powder 打粉\\stock_in医院进货\\medicinal_liquor 药酒")
    private String businessType;

    /**
     * 服药频次
     */
    @Column(length = 30, comment = "服药频次")
    private String frequency;

    /**
     * 一方制药订单号
     */
    @Column(length = 30, comment = "一方制药订单号")
    private String orderNo;
}
